package com.h2cloud;

/**
 * @Package: com.h2cloud
 * @ClassName: FuTest
 * @Author: h2cloud
 * @CreateTime: 2022/5/25 9:52 下午
 * @Description:
 */
class Base {
	// 1.父类静态代码块
	static {
		System.out.println("Base static block!");
	}

	// 3.父类非静态代码块
	{
		System.out.println("Base block");
	}

	// 4.父类构造器
	public Base() {
		System.out.println("Base constructor!");
	}
}

class Derived extends Base {
	// 2.子类静态代码块
	static {
		System.out.println("Derived static block!");
	}

	// 5.子类非静态代码块
	{
		System.out.println("Derived block!");
	}

	// 6.子类构造器
	public Derived() {
		System.out.println("Derived constructor!");
	}

	public static void main(String[] args) {
		new Derived();
	}
}


public class Car {

	public static void main(String[] args) {
		Car.Engine engine = new Car.Engine();
	}

	public void fun(String s, int t){

	}

	

	static class Engine {
	}
}
